<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page import="com.vcs.domain.*, java.util.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
 <meta name="selection" content="clientTab"> 
<title>Employer Login | Post free Jobs | Search Candidates on Vow Consultancy Services</title>
</head>
<body>

<s:if test="#session.client != null">
	<h3>Your Profile</h3>
	<table id="TPView" border="0" cellpadding="2" cellspacing="2">
		<tr>
			<td><s:if test="#session.client != null">

				<table id="clientTable" cellpadding="5px" border="0">
					<tr>
						<td colspan="2" bgcolor="yellow"><s:if
							test="#session.client.accountType == 'free'">
							You are a <strong>free</strong> user and have limited job post capability in your account.<br /> 
							To become a Premium member send an email to jayant@vowconsultancy.com and we shall get in touch with you. 
						</s:if> <s:else>
							Congratulations! You are our <strong>Premium</strong> user and have unlimited job posts in your account.
						</s:else></td>
					</tr>
					<tr>
						<td colspan="2" bgcolor="#bfbfbf">Company Information</td>
					</tr>
					<tr>
						<td>Customer Id</td>
						<td><s:property value="#session.client.id" /></td>
					</tr>
					<tr>
						<td>User Name</td>
						<td><s:property value="#session.client.username" /></td>
					</tr>

					<tr>
						<td>Company Name</td>
						<td><s:property value="#session.client.companyName" /></td>
					</tr>
					<tr>
						<td>Company Profile</td>
						<td><s:property value="#session.client.companyProfile" /></td>
					</tr>
					<tr>
						<td>Industry Type</td>
						<td><s:property
							value="#application.industryList[#session.client.industryType -1 ].name" />
						</td>
					</tr>
					<tr>
						<td colspan="2" bgcolor="#bfbfbf">Contact Information</td>
					</tr>
					<tr>
						<td>Contact Person</td>
						<td><s:property value="#session.client.contactPerson" /></td>
					</tr>
					<tr>
						<td>Designation</td>
						<td><s:property value="#session.client.designation" /></td>
					</tr>
					<tr>
						<td>Email</td>
						<td><s:property value="#session.client.email" /></td>
					</tr>
					<tr>
						<td>Office Phone</td>
						<td><s:property value="#session.client.phone" /></td>
					</tr>
					<tr>
						<td>Mobile Number</td>
						<td><s:property value="#session.client.mobile" /></td>
					</tr>

					<tr>
						<td>Address</td>
						<td><s:property value="#session.client.address" /></td>
					</tr>
					<tr>
						<td>Country</td>
						<td><s:property value="India" default="India"></s:property></td>
					</tr>
					<tr>
						<td>Location</td>
						<td>
						<%	
							List<Location> locList = (List<Location>)application.getAttribute("locationList");
							int id = ((Client)session.getAttribute("client")).getCity();
							String location = null;
							for(Location loc : locList){
								if(loc.getId() == id){
									location = loc.getName();
								}
							}
						%>
						<%= location %>
						</td>
					</tr>
					<tr>
						<td>Pin Code</td>
						<td><s:property value="#session.client.pincode" /></td>
					</tr>
					<tr>
						<td colspan="2" bgcolor="#bfbfbf">Other Information</td>
					</tr>
					<tr>
						<td>Profile Creation Date</td>
						<td><s:property value="#session.client.createdDate" /></td>
					</tr>
					<tr>
						<td style="width: 150px;">Profile Last Update Date</td>
						<td><s:property value="#session.client.updateDate" /></td>
					</tr>
				</table>

			</s:if></td>
		</tr>
		<tr>
			<td><a href="<s:url action="edit"/>">Edit Profile</a></td>
		</tr>
	</table>
</s:if>
<s:else>
	<h3>Employer's Login</h3>
	<table border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td>Recruiters can Login here and avail our <span
				style="color: red;">free services</span>. By Logging in here
			recruiters will be able to post jobs and manager their company
			profile.</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
		</tr>
	</table>
	<s:include value="clientLoginForm.jsp"></s:include>
</s:else>

</body>
</html>